﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlexFlow.Model
{
    /// <summary>
    /// 通知类型
    /// </summary>
    public enum NotificationType
    {
        /// <summary>
        /// 信息通知
        /// </summary>
        Info,
        /// <summary>
        /// 警告通知
        /// </summary>
        Waring,
        /// <summary>
        /// 操作完成通知
        /// </summary>
        Success,
        /// <summary>
        /// 危险通知
        /// </summary>
        Danger
    }

    /// <summary>
    /// 表示对一类通知的文件夹
    /// </summary>
    public class NotificationCatalog : PhysicalModel
    {
        /// <summary>
        /// 通知的接收者
        /// </summary>
        public Guid Reciver { get; set; }
        /// <summary>
        /// 通知的发送者
        /// </summary>
        public string Sender { get; set; }
        /// <summary>
        /// 通知类型
        /// </summary>
        public NotificationType Type { get; set; }
        /// <summary>
        /// 通知目录的描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 通知的数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 通知最后一次触发的日期
        /// </summary>
        public DateTime LastTrigerTime { get; set; }
        /// <summary>
        /// 通知最后一次计数日期
        /// </summary>
        public DateTime LastCountTime { get; set; }
        /// <summary>
        /// 通知最后一次阅读日期
        /// </summary>
        public DateTime LastReadTime { get; set; }

    }
}
